package lab02.test12;

class Rectangular extends Shape {

   @Override

  double perimeter() {

               return (length1+length2)*2;

           }

       @Override

  double area() {

           return length1*length2;

         }

         @Override

   void toprintln() {

            System.out.println("矩形面积为："+this.area()+"   "+"矩形周长为："+this.perimeter());



                }

}
